//
//  ConfirmFooterView.m
//  JSShopCartModule
//
//  Created by legend on 16/8/22.
//  Copyright © 2016年 陈传奇. All rights reserved.
//

#import "ConfirmFooterView.h"

@implementation ConfirmFooterView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)awakeFromNib {
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        UIView * view   =   [[[NSBundle mainBundle]loadNibNamed:@"ConfirmFooterView" owner:self options:nil] firstObject];
        view.frame = frame;
        [self addSubview:view];
        self.remarkText.delegate = self;
    }
    return self;
}
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
    if ([@"\n" isEqualToString:text]) {
        [textView resignFirstResponder];
        return NO;
    }
    return YES;
}
@end
